import Vue from 'vue'
import App from './App.vue'
import router from './router'
//加载和使用ElementUI框架
import ElementUI from 'element-ui';
import moment from 'moment';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
Vue.filter('dateformat', function(dataStr, pattern = 'YYYY-MM-DD HH:mm:ss') {
  return moment(dataStr).format(pattern)
})
//导入并使用axios
import axios from './http' 
Vue.prototype.$axios = axios

Vue.config.productionTip = false

new Vue({
  router,
  data:{},
  render: function (h) { return h(App) }
}).$mount('#app')
